<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>炫酷登录页面</title>
    <style>
        body {
            background-color: #1E1F26;
            font-family: "Segoe UI", "Helvetica Neue", sans-serif;
        }

        .login-box {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,.1);
            padding: 30px;
            width: 400px;
            box-sizing: border-box;
        }

        .login-box h2 {
            margin-top: 0;
            font-weight: 500;
            font-size: 28px;
            color: #333;
        }

        .login-box input[type="text"], .login-box input[type="password"] {
            width: 100%;
            padding: 10px;
            border: none;
            border-bottom: 2px solid #ddd;
            font-size: 16px;
            color: #333;
            margin-bottom: 20px;
            box-sizing: border-box;
            background-color: transparent;
            transition: border-bottom-color 0.3s;
        }

        .login-box input[type="text"]:focus, .login-box input[type="password"]:focus {
            border-bottom-color: #ff3366;
        }

        .login-box button[type="submit"] {
            background-color: #ff3366;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .login-box button[type="submit"]:hover {
            background-color: #ff548c;
        }

        .login-box p {
            margin: 0;
            color: #666;
            font-size: 14px;
            text-align: center;
            margin-top: 20px;
        }

        .login-box p a {
            color: #ff3366;
            text-decoration: none;
        }

        .login-box p a:hover {
            text-decoration: underline;
        }

        .login-box .error-message {
            margin-top: 10px;
            font-size: 14px;
            color: #ff3366;
        }

        .login-box .loading-spinner {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .login-box .loading-spinner img {
            width: 50px;
            height: 50px;
        }
    </style>
</head>
<body>
<div class="login-box">
    <h2>登录</h2>
    <form id="login-form" action="login" method="post">
        <input type="text" name="username" placeholder="用户名" required>
        <input type="password" name="password" placeholder="密码" required>
        <button type="submit" id="login-button">登录</button>
        <div class="error-message" id="error-message">${msg}</div>
    </form>
    <p>还没有账号？<a href="#">立即注册</a></p>
    <p>还没有账号？<a href="user">用户列表</a></p>
</div>
</body>
</html>